#FLAGS = -O3 -pg
#FLAGS = -g -lm
#FLAGS = -g -Wall
FLAGS = -Wall -O3
#LINK = -lm
COMPILER = g++
OBJS = dna.o kmer.o contig.o getargs.o tools.o
EXEFILENAME = idba-mt
MAINFILE = idba-mt.cpp

all: main

main: ${MAINFILE} dna kmer contig getargs tools
	${COMPILER} ${FLAGS} -o ${EXEFILENAME} ${MAINFILE} ${OBJS}
	
dna: dna.cpp dna.h
	${COMPILER} ${FLAGS} -c dna.cpp

kmer: kmer.cpp kmer.h
	${COMPILER} ${FLAGS} -c kmer.cpp

contig: contig.cpp contig.h
	${COMPILER} ${FLAGS} -c contig.cpp

getargs: getargs.cpp getargs.h
	${COMPILER} ${FLAGS} -c getargs.cpp

tools: tools.cpp tools.h
	${COMPILER} ${FLAGS} -c tools.cpp